/*
 * @ author madman 
 * @ use 上传图片模型
 */

var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var shortid = require('shortid');
var UploadSchema = new Schema({
    // 文章ID
     _id: {
        type: String,
        'default': shortid.generate
    },
	//路径数组
    imgPath: {
        type: Array,
    },
    // 新建时间
    createdAt: {
        type: Date,
        default: Date.now
    },
    // 更新时间
    updataAt: {
        type: Date,
        default: Date.now
    }
});
module.exports = mongoose.model('j_upload', UploadSchema);